package com.rxt.common.result;

import lombok.Getter;

/**
 * 统一的结果状态信息类
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(2000,"成功"),
    FAIL(2001, "失败"),
    PERMISSION(4001, "token验证失败"),
    INVALID_PARAMETER(4003, "无效参数"),
    SERVER_BUSY(5003, "服务器繁忙")
    ;

    private final Integer code;
    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
